package common.annotation;

import java.lang.annotation.Annotation;
import java.util.Arrays;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author song
 * @date 2021/11/25 16:47
 */
public class ObjectFactory {
    public static <T> T newInstance(Class<T> tClass) {
        Annotation[] annotations = tClass.getAnnotations();
        Arrays.asList(annotations).forEach(i -> {
            if (i instanceof Aspect) {
                Class type = ((Aspect) i).type();
            }
        });
        return null;
    }
}

